<template>
	<view class="content">
		<!-- <image class="logo" src="/static/logo.png"></image> -->
		<view>
			<button @click="onGoToMenuPage">菜单</button>
			<button @click="onGoToOrderPage">订单</button>
			<button @click="onGoToMyPage">我的</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello Wrold'
			}
		}, onShow() {
    // 隐藏 tabBar
    uni.hideTabBar();
  },
  onHide() {
    // 离开首页时显示 tabBar
    uni.showTabBar();
  },
		methods: {
			onGoToMenuPage() {
				uni.switchTab({
					url: '/pages/Menu/index'
				})
			},	onGoToOrderPage() {
				uni.switchTab({
					url: '/pages/Order/index'
				})
			},	onGoToMyPage() {
				uni.switchTab({
					url: '/pages/My/index'
				})
			},
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
